//
//  chara.cpp
//  rpg-purdue
//
//  Created by Huyue Gu on 9/6/11.
//  Copyright 2011 Purdue University. All rights reserved.
//

#include <iostream>
#include <chara.h>



void Hero::changeP(int x,int y){
    hero_po.x=x;
    hero_po.y=y;
}
bool Hero::damage(int a){
    hp-=a;
    if(hp<=0){
        return false;
    }
    return true;
}//make a decrese of hp and return false is hp is less than 0
void Hero::changeH(int){
    
}//change the holding item
void Hero::changeS(int){}//change role's state
bool Hero::useMp(int){    
  mp-=a;
    if(mp<=0){
        return false;
    }
    return true;}//decrease mp return false when mp<0
Hero::Hero(){
    
}
Hero::~Hero(){
    
}